def plus(args):
    sum = 0
    for i in args:
        sum = (sum + i)
    return sum


aa = int(input("请输入你要加几个数："))
args = []
bb = 1
while bb <= aa:
    num = int(input("请输入你要加的第{}个数：".format(bb)))
    args.append(num)
    bb = bb + 1
cc = plus(args)/aa
print("平均值是{}".format(cc))